package com.uestc.soft.mapper;

import com.uestc.soft.pojo.Master;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MasterMapper {   // 数据库的接口调用通道

    Master selectByMaster(Integer master);

    Master selectByMasterAndDivide(@Param("master") Integer master,
                                @Param("divide") String divide);


    List<Master> selectByPage(@Param("index") int index,
                              @Param("limit") int limit,
                              @Param("master") Integer master,
                              @Param("divide") String divide);

    int selectCount(@Param("master") Integer master,
                    @Param("divide") String divide);

    void insert(@Param("master") Master master);


    void deleteByMaster(Integer master);


    Master selectByMasters(Master masters);
    void update(Integer master, String divide, Integer weakpassword, String lastLoginTime);
}

